html,
body {
  width: 100%;
  min-height: 100%;
  height: auto;
}

html {
  scroll-behavior: initial;
  box-sizing: border-box;
  font-size: calc(100vw / 1920 * 10);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;

  @media only screen and (max-width: 812px) {
    font-size: calc(100vw / 375 * 10) !important;
  }
}

body {
  overscroll-behavior: none;
  font-family: $font-text;
  font-weight: 400;
  font-display: swap;
  color: $color-text;
  transition: opacity 1s ease;
  background: $color-primary;
  opacity: 0;

  &.loaded {
    opacity: 1;
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
  user-select: none;
  outline: none;
  -webkit-touch-callout: none;
}

:focus {
  outline: none;
}

::-moz-focus-inner {
  border: 0;
}

a {
  color: inherit;
  outline: none;
  pointer-events: auto;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  border-radius: none;
  color: inherit;
  font: inherit;
  outline: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  vertical-align: middle;
  object-fit: cover;
}

input,
textarea {
  appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  pointer-events: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $font-text-bold;
}

// loader
.loader {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  background: $color-primary;
  transition: all 1s ease;
  @extend %grid-center;

  &.inactive {
    opacity: 0;
  }
}
